﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using System.Web.Mvc;
using Gman.Entity.Entities;
using System.Collections.Generic;
using Gman.WebApp.ServiceControllers;

namespace Gman.WebApp.Models
{
    public class MaterialModel : BaseModel
    {
        public Guid? ID { get; set; }
        public string Action { get; set; }
        public MaterialBE Material { get;  set; }
        public List<MaterialBE> Materiales { get; set; }

        public SelectList Tipo{ get; set; }
        public SelectList Sedes { get; set; }
        public SelectList Femilia { get; set; }
        public SelectList SubFemilia { get; set; }
        public SelectList Categoria { get; set; }
        public SelectList SubCategoria { get; set; }

        public MaterialModel(MaterialBE material, List<MaterialBE> materiales)
        {
            ID = Guid.NewGuid();
            Material = material;
            Materiales = materiales;
        }

        public ValidationBase Validator { get; set; }
        public List<KeyValuePair<string, string>> ValidationList = new List<KeyValuePair<string, string>>();
        public List<KeyValuePair<string, bool>> PropertyVisibilityList = new List<KeyValuePair<string, bool>>();

        public ToolBarModel ToolBar { get; set; }

    }
}
